/*
    工作台的路由
*/
const workBench = () => import(/*webpackChunkName:"name"*/'../view/work-bench')
const settlement = () => import(/*webpackChunkName:"name"*/'../view/work-bench/settlement')
// const settlementContent = () => import(/*webpackChunkName:"name"*/'../view/work-bench/settlement/content')
const settlementWage = () => import(/*webpackChunkName:"name"*/'../view/work-bench/settlement/wage')
const settlementWageContent = () => import(/*webpackChunkName:"name"*/'../view/work-bench/settlement/wage/content')
const settlementEngineeringFound = () => import(/*webpackChunkName:"name"*/'../view/work-bench/settlement/engineering-found')
const constructionPlan = () => import(/*webpackChunkName:"name"*/'../view/work-bench/construction-plan')
const approval = () => import(/*webpackChunkName:"name"*/'../view/work-bench/approval')
const invoiceMonent = () => import(/*webpackChunkName:"name"*/'../view/work-bench/invoice-moment')
const payment = () => import(/*webpackChunkName:"name"*/'../view/work-bench/payment')
const visaForm = () => import(/*webpackChunkName:"name"*/'../view/work-bench/visa-form')
const workBenchRouter = {
    path: 'work-bench',
    name: 'workBench',
    component: workBench,
    redirct: 'settlement',
    meta: {
        title: '工作台'
    },
    children: [
        {
            path: 'settlement',
            name: 'settlement',
            component: settlement,
            meta: {
                title: '结算管理'
            },
            children: [
                // {
                //     path: '',
                //     name: 'settlementContent',
                //     component: settlementContent,
                //     meta: {
                //        title: '结算管理',
                //        baiseRouter: true
                //     }
                // },
                {
                    path: '',
                    name: 'settlementWage',
                    component: settlementWage,
                    meta: {
                       title: '工资结算',
                       baiseRouter: true
                    },
                    children: [
                        {
                            path: '',
                            component: settlementWageContent,
                            meta: {
                                title: '工资结算',
                                baiseRouter: true
                            }
                        }
                    ]
                },
                {
                    path: 'settlement-engineering-found',
                    name: 'settlementEngineeringFound',
                    component: settlementEngineeringFound,
                    meta: {
                       title: '工程款管理',
                       baiseRouter: true
                    }
                }
                
            ]
        },
        {
            path: 'construction-plan',
            name: 'constructionPlan',
            component: constructionPlan,
            meta: {
                title: '施工计划'
            }
        },
        {
            path: 'approval',
            name: 'approval',
            component: approval,
            meta: {
                title: '审批'
            }
        },
        {
            path: 'invoice-monent',
            name: 'invoiceMonent',
            component: invoiceMonent,
            meta: {
                title: '发票管理'
            }
        },
        {
            path: 'payment',
            name: 'payment',
            component: payment,
            meta: {
                title: '付款'
            }
        },
        {
            path: 'visa-form',
            name: 'visaForm',
            component: visaForm,
            meta: {
                title: '签证单'
            }
        }   
    ]
    
}
export default workBenchRouter